package net.cloudbusniness.cloudbusinessclient.mobieimsdk;

import android.util.Log;

import net.cloudbusniness.cloudbusinessclient.application.AppInstance;
import net.openmob.mobileimsdk.android.event.ChatTransDataEvent;

/**
 * Created by hulei on 2017/2/17.
 * 实时消息事件回调实现类：
 */
public class ChatTransDataEventImpl implements ChatTransDataEvent
{
    private String TAG = AppInstance.TAG;
    // 收到即时通讯消息通知
    @Override
    public void onTransBuffer(String fingerPrintOfProtocal, int dwUserid, String dataContent)
    {
        Log.i(TAG, "收到来自用户"+dwUserid+"的消息:"+dataContent);
    }

    // 收到服务端反馈的错误信息通知
    @Override
    public void onErrorResponse(int errorCode, String errorMsg)
    {
        Log.i(TAG, "收到服务端错误消息，errorCode="+errorCode+", errorMsg="+errorMsg);
    }
}
